home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 441 / dlibs12 / isatty.c < prev    next >
C/C++ Source or Header  |  1990-11-23  |  239b  |  16 lines

  1. #include <stdio.h>
  2. #include <osbind.h>
  3.  
  4. int isatty(handle)
  5.     register int handle;
  6.     {
  7.     register long status;
  8.  
  9.     if((status = Fseek(1L, handle, 1)) > 0)
  10.         {
  11.         Fseek(-1L, handle, 1);
  12.         return(FALSE);
  13.         }
  14.     return(status == 0);
  15.     }
  16.